use the one central list of talk namespaces, don't make your own every time you need one
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 8 Mar 2004 09:39:01 +0000 (09:39 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 8 Mar 2004 09:39:01 +0000 (09:39 +0000)
includes/EditPage.php

index 1083ae8..1e224d1 100644 (file)
@@ -116,8 +116,7 @@ class EditPage {
                        $wgOut->addWikiText(wfmsg("newarticletext"));
                }
 
-               $talknamespaces = array( NS_TALK, NS_WP_TALK, NS_IMAGE_TALK, NS_MEDIAWIKI_TALK );
-               if( in_array( $this->mTitle->getNamespace(), $talknamespaces ) ) {
+               if( Namespace::isTalk( $this->mTitle->getNamespace() ) ) {
                        $wgOut->addWikiText(wfmsg("talkpagetext"));
                }